<template>
  <div>
    <!-- 统计和清空 -->
    <footer>
      <!-- 统计 -->
      <span
        >合 计:<strong> {{ list.length }}</strong></span
      >
      <br />
      <!-- 清空 -->
      <button @click="$emit('cal')">清空任务</button>
    </footer>
  </div>
</template>
<script>
export default {
  name: 'TodoFooter',
  props: {
    list: {
      type: Array,
      default: () => []
    },

  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
   
  }
}
</script>
<style   scoped>
footer {
  background-color: hotpink;
}
</style>
